package com.moli.honjie.s002test.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.clj.fastble.data.BleDevice;
import com.moli.honjie.s002test.R;

import java.util.List;

/**
 * Created by Timmy on 2018/3/26.
 */

public class BleScanAdapter extends BaseQuickAdapter<BleDevice, BaseViewHolder> {
    public BleScanAdapter(@Nullable List<BleDevice> data) {
        super(R.layout.scanitem, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BleDevice item) {
        helper.setText(R.id.device_name, item.getName());
    }
}
